<template>
  <div id="app">
    hello word
  </div>
</template>

<script>


export default {
  name: 'App',
  created () {
    //this.queryList();
    //this.insert();
    this.listByPage();
  },
  methods: {
    queryList () {
      this.axios.post("http://localhost:8008/books/list", {}).then(res => {
        console.log("-------------queryList:", res.data);
      })
    },
    insert () {
      this.axios.post("http://localhost:8008/books/insert", { name: 'mybatis plus', author: '小刘', price: 18.8 }).then(res => {
        console.log("-------------insert:", res.data);
      })
    },
    listByPage () {
      this.axios.post("http://localhost:8008/books/listByPage", { page: 1, size: 5 }).then(res => {
        console.log("-------------listByPage:", res.data);
      })
    }
  }
}
</script>

<style lang="less">
</style>
